﻿using System;
using System.Collections.Generic;

using RexToy.Configuration;

namespace RexToy.UI.Web.Configuration
{
    public static class WebConfig
    {
        private static IWebConfig _web_cfg;
        public static IWebConfig WebConfiguration
        {
            get
            {
                if (_web_cfg == null)
                {
                    _web_cfg = ModuleConfigFactory.Create<XmlWebConfig>();
                }
                return _web_cfg;
            }
        }

        public static void Initialize(IWebConfig web_cfg)
        {
            _web_cfg = web_cfg;
        }
    }
}
